const express = require('express')

const app = express()
const port = 3000

app.set('views', '.')
app.set('view engine', 'ejs')

app.get('/', (req, res) => {
  res.render('index.ejs');
});

app.get('/ping', (req, res) => {
  console.log('call ping');
  res.send('pong')
});

app.listen(port, () => console.log(`Example app listening on port ${port}!`))